home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Games Collection 1
/
software vault.zip
/
software vault
/
CDR10
/
YICN23.ZIP
/
SOURCE
/
XPRINTF.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-01
|
516b
|
32 lines
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#define BYTE unsigned char
#define WORD unsigned int
#include "xlib.h"
extern unsigned char CharWidth;
extern unsigned char CharHeight;
void x_printf(int x, int y,unsigned ScrnOffs,int color,char *ln,...){
char dlin[100],*dl=dlin;
int xx;
char ch;
va_list ap;
va_start(ap,ln);
vsprintf(dlin,ln,ap);
va_end(ap);
xx=x;
while(*dl){
x_char_put(*dl++,x,y,ScrnOffs,color);
x+=CharWidth;
}
}